# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=tnscmd
pkgver=1.3
pkgrel=9
pkgdesc='A lame tool to prod the oracle tnslsnr process (1521/tcp).'
url='http://www.jammed.com/~jwa/hacks/security/tnscmd/'
groups=('blackarch' 'blackarch-misc')
license=('GPL')
arch=('any')
depends=('perl')
replaces=('tnscmd10g')
#source=("http://www.jammed.com/~jwa/hacks/security/$pkgname/$pkgname")
source=("$pkgname::http://www.red-database-security.com/scripts/${pkgname}10g.pl.txt")
sha512sums=('0e4ff3e405a04cbb2b834ffce0c1263392e696c0b639c649e5181adb6996bfa718acdc4737286e9ad81576141433e55e46cd965ec016b7417004f3d496ec4185')

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"

  ln -sf "/usr/bin/$pkgname" "$pkgdir/usr/bin/${pkgname}10g"
}

